import request from '@/utils/request'

// 查询仓库列表
export function listStorehouse(query) {
  return request({
    url: '/vqms/storehouse/list',
    method: 'get',
    params: query
  })
}

// 查询仓库详细
export function getStorehouse(id) {
  return request({
    url: '/vqms/storehouse/' + id,
    method: 'get'
  })
}

// 新增仓库
export function addStorehouse(data) {
  return request({
    url: '/vqms/storehouse/add',
    method: 'post',
    data: data
  })
}

// 修改仓库
export function updateStorehouse(data) {
  return request({
    url: '/vqms/storehouse/update',
    method: 'put',
    data: data
  })
}

// 删除仓库
export function delStorehouse(id) {
  return request({
    url: '/vqms/storehouse/' + id,
    method: 'delete'
  })
}

// 查询仓库库位列表
export function listStorehouseLocation(query) {
  return request({
    url: '/vqms/storehouseLocation/list',
    method: 'get',
    params: query
  })
}
// 查询排队队列列表(不分页)
export function selectStorehouseLocationList(query) {
  return request({
    url: '/vqms/storehouseLocation/getList',
    method: 'get',
    params: query
  })
}

// 查询仓库库位详细
export function getStorehouseLocation(id) {
  return request({
    url: '/vqms/storehouseLocation/' + id,
    method: 'get'
  })
}

// 新增仓库库位
export function addStorehouseLocation(data) {
  return request({
    url: '/vqms/storehouseLocation/add',
    method: 'post',
    data: data
  })
}

// 修改仓库库位
export function updateStorehouseLocation(data) {
  return request({
    url: '/vqms/storehouseLocation/update',
    method: 'put',
    data: data
  })
}

// 删除仓库库位
export function delStorehouseLocation(id) {
  return request({
    url: '/vqms/storehouseLocation/' + id,
    method: 'delete'
  })
}